package com.situ.shoplook.common.service;
import com.situ.shoplook.common.model.Product;
import com.situ.shoplook.common.util.PaginateInfo;

import java.util.List;
import java.util.Map;

/**
 * @author:yzy
 * @date:2024/9/2
 */
public interface ProductService {
    Map<String,Object> findAll(PaginateInfo pi, String name);
    boolean save(Product product);

    boolean update(Product product);

    int deleteByIds(Integer[] ids);

    List<Product> findById(Integer id);
    List<Product> findByName(String name);

    List<Product> findAllProducts();

    Product findOneProduct(Integer id);

    List<Product> findByIds(List<Integer> categoryIds);

    List<Product> findBest();
}
